<%= form_for(@user) do |f| %>
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :user_type_id %><br />
    <%= f.number_field :user_type_id %>
  </div>
  <div class="field">
    <%= f.label :first_name %><br />
    <%= f.text_field :first_name %>
  </div>
  <div class="field">
    <%= f.label :last_name %><br />
    <%= f.text_field :last_name %>
  </div>
  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>
  <div class="control-group">
    <%= f.label :password, :class => "control-label"  %>      
    <div class="controls">
      <%= f.password_field :password, :class => "m-wrap medium", :placeholder => "password" %>  
    </div>
  </div>
  <div class="control-group">
    <%= f.label :password_confirmation, :class => "control-label"  %>  
    <div class="controls">
      <%= f.password_field :password_confirmation, :class => "m-wrap medium", :placeholder => "password_confirmation" %>  
    </div>
  </div>
  <div class="field">
    <%= f.label :index_phone %><br />
    <%= f.text_field :index_phone %>
  </div>
  <div class="field">
    <%= f.label :phone %><br />
    <%= f.text_field :phone %>
  </div>
  <div class="field">
    <%= f.label :address %><br />
    <%= f.text_field :address %>
  </div>
  <div class="field">
    <%= f.label :country %><br />
    <%= f.text_field :country %>
  </div>
  <div class="field">
    <%= f.label :city %><br />
    <%= f.text_field :city %>
  </div>
  <div class="field">
    <%= f.label :zip_code %><br />
    <%= f.text_field :zip_code %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
